Getting Started - Building the plugin

From RidgeRun Developer Wiki

Follow Us On Twitter LinkedIn Email Share this page







Preferred Partner Logo 3 Partner Program Banner





Dependencies

GStreamer Browser Sink needs the following dependencies:

  • GStreamer development files
  • Libsoup development files
  • Libnice development files
  • GStreamer plug-ins (to run the pipeline)
  • Build utilities (meson, ninja, compilers, etc...)

In debian-based systems you can run:

sudo apt install \
  pkg-config \
  libgstreamer1.0-dev \
  libsoup-3.0-dev \
  libnice-dev \
  libssl-dev \
  gstreamer1.0-plugins-base \
  gstreamer1.0-plugins-good \
  gstreamer1.0-plugins-bad \
  gstreamer1.0-plugins-ugly \
  gstreamer1.0-libav \
  gstreamer1.0-nice \
  gstreamer1.0-tools gstreamer1.0-x \
  ninja-build build-essential

Meson needs to be installed from PIP:

sudo -H pip install meson

Building the project

Once the dependencies have been met you can clone the repository. You can run a default compilation with the following:

meson setup builddir --prefix /usr
meson compile -C builddir
sudo meson install -C builddir

You can check the installation of the plugin as follows.

 gst-inspect-1.0 rrbrowsersink

The expected output will start as follows

Factory Details:
  Rank                     none (0)
  Long-name                RidgeRun Browser Sink
  Klass                    Sink/Video/Network
  Description              Render low-latency streams to a browser window
  Author                   Michael Gruner <michael.gruner@ridgerun.com>

Plugin Details:
  Name                     rrbrowsersink
  Description              RidgeRun Browser Sink
  Filename                 /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstrrbrowsersink.so
  Version                  0.1.0
  License                  Proprietary
  Source module            gst-rr-browser-sink
  Binary package           RidgeRun
  Origin URL               https://ridgerun.com